home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-28 | 1.9 KB | 74 lines | [TEXT/R*ch] |
- Notarize, by Maurice Sharp
- Copyright (c) 1993, 1994 Apple Computer, Inc. All rights reserved.
-
- Special thanks to Jeremy at the Multi Media Corporation.
-
- Here are some notes on what you can (and can not) do to items that are part
- of a note:
-
- 1. Making Layouts Match
- -----------------------
-
- So, you have a bunch of data in your application layed out in a particular
- way and you want to export to the notepad and maintain the same layout.
-
- Can you do it... mostly. How to do it is explained below, but there are
- some caveats:
-
- 1. You can NOT do clipping in any reasonable way
-
- 2. You can NOT do viewJustify stuff in any reasonable way
-
- 3. You can have only ONE level of children, no grouping
-
- 4. Printing or Faxing from the Notepad will do the smart postformatting,
- that means all your formatting will probably be lost.
-
-
-
- 2. More on the NotePad Format
- -----------------------------
-
- The information in NPG on accessing system data is correct, however there
- are a couple of ommisions that are important for getting things to
- look the same.
-
- Paragraph data entries (i.e., viewStationary: 'para) can have other
- slots set:
-
- viewFont: the view font that you want to use to display the text
-
- This is in addition to the viewBounds, text, tabs and styles slots.
-
-
- 3. Getting the Data Right
- -------------------------
-
- To get the data to look right you need to set ** things:
-
- 1. viewBounds - make sure children are normalized to the top parent
-
- 2. viewFont - this may be needed to get the correct font
-
- 3. styles - if you have style information, you need this array
-
- 4. tabs - if you have tabs in the text you need this
-
- 5. text - obvious
-
- NOTE: you may not need 2, 3 and 4
-
-
- 4. Onto the Sample
- ------------------
-
- First off, thanks to Jeremy at the Multi Media Corporation for the original
- question and sample code!
-
- There is only one important method in the sample:
-
- Notarize.buttonClickScript
-
- This is where all the work happens. Take a look at the code, it is liberaly
- documented.
-